home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 9
/
FM Towns Free Software Collection 9.iso
/
t_os
/
tool
/
tetujin
/
src
/
igrset.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-16
|
17KB
|
673 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int baseSetupDialogId ;
extern int baseSetupDialogId2 ;
extern int baseSetupMesId[10] ;
extern int baseSetupModeTitleMesId ;
extern int baseSetupNumId[4] ;
extern int baseSetupNumFunc() ;
extern int setupTIconId[6] ;
extern int baseSetupTIconFunc() ;
extern int setupAreaTIconId[3] ;
extern int baseSetupAreaTIconFunc() ;
extern int baseSetupModeMesId[6] ;
extern int baseScrId[4] ;
extern int baseSetupScrFunc() ;
extern int baseSDBtnId[2] ;
extern int baseSetupOkFunc() ;
extern int baseSetupTitleMesId ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataIGRSET = { "MmiInit", 39, 0 } ;
/* baseSetupDialogId */
static MMIPACKET d001 = { &baseSetupDialogId,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
81, 110, 432, 371,15, 4, 8,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* baseSetupDialogId2 */
static MMIPACKET d002 = { &baseSetupDialogId2,
&baseSetupDialogId,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d002d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
87, 141, 426, 340,15, 7, 8,
MS_DFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* baseSetupMesId[0] */
static MMIPACKET d003 = { &baseSetupMesId[0],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d003d = { MS_RIGHTL40 | MS_DSPONLYL40,
94, 152, 213, 171, 0,15, 8,
MS_NONEL40,
"ミキシングレート",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupMesId[1] */
static MMIPACKET d004 = { &baseSetupMesId[1],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d004d = { MS_RIGHTL40 | MS_DSPONLYL40,
94, 176, 213, 195, 0,15, 8,
MS_NONEL40,
"(0~100)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupMesId[2] */
static MMIPACKET d005 = { &baseSetupMesId[2],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d005d = { MS_RIGHTL40 | MS_DSPONLYL40,
94, 200, 213, 219, 0,15, 8,
MS_NONEL40,
"(0~100)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupMesId[3] */
static MMIPACKET d006 = { &baseSetupMesId[3],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d006d = { MS_RIGHTL40 | MS_DSPONLYL40,
94, 224, 213, 243, 0,15, 8,
MS_NONEL40,
"(0~100)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupModeTitleMesId */
static MMIPACKET d007 = { &baseSetupModeTitleMesId,
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
215, 256, 388, 275, 0,15, 8,
MS_NONEL40,
"モード",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupMesId[4] */
static MMIPACKET d008 = { &baseSetupMesId[4],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
103, 256, 194, 275, 0,15, 8,
MS_NONEL40,
"領域指定",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupNumId[0] */
static MMIPACKET d009 = { &baseSetupNumId[0],
&baseSetupDialogId2,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d009d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
384, 154, 414, 169, 8, 7, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
baseSetupNumFunc,
1, 12, 12,
MS_NONEL40,
0, 0,
100, 0, 100, 1, 0,
263, 264
} ;
/* baseSetupNumId[1] */
static MMIPACKET d010 = { &baseSetupNumId[1],
&baseSetupDialogId2,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d010d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
384, 178, 414, 193, 8, 7, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
baseSetupNumFunc,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 100, 1, 0,
263, 264
} ;
/* baseSetupNumId[2] */
static MMIPACKET d011 = { &baseSetupNumId[2],
&baseSetupDialogId2,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d011d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
384, 202, 414, 217, 8, 7, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
baseSetupNumFunc,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 100, 1, 0,
263, 264
} ;
/* baseSetupNumId[3] */
static MMIPACKET d012 = { &baseSetupNumId[3],
&baseSetupDialogId2,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d012d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
384, 226, 414, 241, 8, 7, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
baseSetupNumFunc,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 100, 1, 0,
263, 264
} ;
/* setupTIconId[0] */
static MMIPACKET d013 = { &setupTIconId[0],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d013d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
203, 279, 306, 296, 8, 7, 8,
MS_NONEL40,
baseSetupTIconFunc,
0x0000, 259, 260
} ;
/* setupTIconId[1] */
static MMIPACKET d014 = { &setupTIconId[1],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d014d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
315, 279, 418, 296, 8, 7, 8,
MS_NONEL40,
baseSetupTIconFunc,
0x0000, 259, 260
} ;
/* setupAreaTIconId[0] */
static MMIPACKET d015 = { &setupAreaTIconId[0],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d015d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
100, 279, 179, 296, 8, 7, 8,
MS_NONEL40,
baseSetupAreaTIconFunc,
0x0000, 259, 260
} ;
/* setupAreaTIconId[1] */
static MMIPACKET d016 = { &setupAreaTIconId[1],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d016d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
100, 297, 179, 314, 8, 7, 8,
MS_NONEL40,
baseSetupAreaTIconFunc,
0x0000, 259, 260
} ;
/* setupAreaTIconId[2] */
static MMIPACKET d017 = { &setupAreaTIconId[2],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d017d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
100, 315, 179, 332, 8, 7, 8,
MS_NONEL40,
baseSetupAreaTIconFunc,
0x0000, 259, 260
} ;
/* baseSetupModeMesId[0] */
static MMIPACKET d018 = { &baseSetupModeMesId[0],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d018d = { MS_LEFTL40 | MS_DSPONLYL40,
223, 278, 302, 297, 0,15, 8,
MS_NONEL40,
"モード1",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupModeMesId[1] */
static MMIPACKET d019 = { &baseSetupModeMesId[1],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d019d = { MS_LEFTL40 | MS_DSPONLYL40,
334, 278, 413, 297, 0,15, 8,
MS_NONEL40,
"モード2",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupMesId[5] */
static MMIPACKET d020 = { &baseSetupMesId[5],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d020d = { MS_CENTERL40 | MS_DSPONLYL40,
120, 278, 179, 297, 0,15, 8,
MS_NONEL40,
"ポリゴン",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupMesId[6] */
static MMIPACKET d021 = { &baseSetupMesId[6],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d021d = { MS_CENTERL40 | MS_DSPONLYL40,
124, 296, 183, 315, 0,15, 8,
MS_NONEL40,
"長方形",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupMesId[7] */
static MMIPACKET d022 = { &baseSetupMesId[7],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d022d = { MS_CENTERL40 | MS_DSPONLYL40,
124, 314, 182, 333, 0,15, 8,
MS_NONEL40,
"全画面",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* setupTIconId[2] */
static MMIPACKET d023 = { &setupTIconId[2],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d023d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
203, 297, 306, 314, 8, 7, 8,
MS_NONEL40,
baseSetupTIconFunc,
0x0000, 259, 260
} ;
/* baseSetupModeMesId[2] */
static MMIPACKET d024 = { &baseSetupModeMesId[2],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d024d = { MS_LEFTL40 | MS_DSPONLYL40,
223, 296, 302, 315, 0,15, 8,
MS_NONEL40,
"モード3",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* setupTIconId[3] */
static MMIPACKET d025 = { &setupTIconId[3],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d025d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
315, 297, 418, 314, 8, 7, 8,
MS_NONEL40,
baseSetupTIconFunc,
0x0000, 259, 260
} ;
/* baseSetupModeMesId[3] */
static MMIPACKET d026 = { &baseSetupModeMesId[3],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d026d = { MS_LEFTL40 | MS_DSPONLYL40,
334, 296, 413, 315, 0,15, 8,
MS_NONEL40,
"モード4",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseScrId[0] */
static MMIPACKET d027 = { &baseScrId[0],
&baseSetupDialogId2,
&MJ_SCRLL40,
OFFSET(SCRLL40),
MS_NONE
} ;
static SCRLL40 d027d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
219, 154, 378, 169, 8, 4, 7,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
baseSetupScrFunc,
0, 0, 255, 16, 16,
265, 266
} ;
/* baseScrId[1] */
static MMIPACKET d028 = { &baseScrId[1],
&baseSetupDialogId2,
&MJ_SCRLL40,
OFFSET(SCRLL40),
MS_NONE
} ;
static SCRLL40 d028d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
219, 178, 378, 193, 8, 4, 7,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
baseSetupScrFunc,
0, 0, 255, 16, 16,
265, 266
} ;
/* baseScrId[2] */
static MMIPACKET d029 = { &baseScrId[2],
&baseSetupDialogId2,
&MJ_SCRLL40,
OFFSET(SCRLL40),
MS_NONE
} ;
static SCRLL40 d029d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
219, 202, 378, 217, 8, 4, 7,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
baseSetupScrFunc,
0, 0, 255, 16, 16,
265, 266
} ;
/* baseScrId[3] */
static MMIPACKET d030 = { &baseScrId[3],
&baseSetupDialogId2,
&MJ_SCRLL40,
OFFSET(SCRLL40),
MS_NONE
} ;
static SCRLL40 d030d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
219, 226, 378, 241, 8, 4, 7,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
baseSetupScrFunc,
0, 0, 255, 16, 16,
265, 266
} ;
/* setupTIconId[4] */
static MMIPACKET d031 = { &setupTIconId[4],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d031d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
203, 315, 306, 332, 8, 7, 8,
MS_NONEL40,
baseSetupTIconFunc,
0x0000, 259, 260
} ;
/* baseSetupModeMesId[4] */
static MMIPACKET d032 = { &baseSetupModeMesId[4],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d032d = { MS_LEFTL40 | MS_DSPONLYL40,
223, 314, 302, 333, 0,15, 8,
MS_NONEL40,
"モード5",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* setupTIconId[5] */
static MMIPACKET d033 = { &setupTIconId[5],
&baseSetupDialogId2,
&MJ_TICONL40,
OFFSET(TICONL40),
MS_NONE
} ;
static TICONL40 d033d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
315, 315, 418, 332, 8, 7, 8,
MS_NONEL40,
baseSetupTIconFunc,
0x0000, 259, 260
} ;
/* baseSetupModeMesId[5] */
static MMIPACKET d034 = { &baseSetupModeMesId[5],
&baseSetupDialogId2,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d034d = { MS_LEFTL40 | MS_DSPONLYL40,
334, 314, 413, 333, 0,15, 8,
MS_NONEL40,
"モード6",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSDBtnId[1] */
static MMIPACKET d035 = { &baseSDBtnId[1],
&baseSetupDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d035d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
339, 344, 414, 365,10, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
baseSetupOkFunc,
0x0000
} ;
/* baseSetupMesId[9] */
static MMIPACKET d036 = { &baseSetupMesId[9],
&baseSetupDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d036d = { MS_CENTERL40 | MS_DSPONLYL40,
353, 345, 400, 364, 0,15, 8,
MS_NONEL40,
"取 消",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSDBtnId[0] */
static MMIPACKET d037 = { &baseSDBtnId[0],
&baseSetupDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d037d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
100, 344, 175, 365,12, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
baseSetupOkFunc,
0x0000
} ;
/* baseSetupMesId[8] */
static MMIPACKET d038 = { &baseSetupMesId[8],
&baseSetupDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d038d = { MS_CENTERL40 | MS_DSPONLYL40,
114, 345, 161, 364, 0,15, 8,
MS_NONEL40,
"実 行",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* baseSetupTitleMesId */
static MMIPACKET d039 = { &baseSetupTitleMesId,
&baseSetupDialogId,
&MJ_MSGL40,
0,
MS_NONE
} ;
static MSGL40 d039d = { MS_LEFTL40 | MS_DSPONLYL40,
100, 117, 255, 136, 0,15, 8,
MS_NONEL40,
"タイトル",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;